body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    padding-bottom: 150px;
}

/* ---------------------------------------------------------------搜索 */
header {
    background-color: #fff;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.search-bar {
    display: flex;
    justify-content: center;
}

.search-bar input {
    width: 80%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    margin-right: 20px;
}

header img {
    width: 50px;
    height: 50px;
    margin-right: 20px;
    border-radius: 90px;
}

/* ------------------------------------------------------------主体 */
main {
    max-width: 100%;
    /* width: 80%;
    padding: 0; */
    text-align: center;
}

main img {
    width: 85%;
    height: 200px;
    padding: 10px;
}

main h2 {
    text-align: left;
    padding-left: 10px;
    padding-right: 10px;
}

main p {
    text-align: left;
    padding-left: 10px;
    padding-right: 10px;
}

.video-feed {
    display: flex;
    justify-content: space-between;
    padding: 10px;
}

.video-column {
    flex: 1;
    margin: 0 5px;
}

.video-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}



/* ------------------------------------------------------------------轮播 */
.carousel {
    position: relative;
    margin: auto;
    overflow: hidden;
}

.carousel-images {
    display: flex;
    transition: transform 0.5s ease;
    /* 动画效果 */
}

.carousel-images img {
    max-width: 100%;
    display: none;
    height: 100%;
    /* 默认隐藏所有图像 */
}

.carousel-images img.active {
    display: block;
    /* 仅显示活动图像 */
}

.carousel {
    position: relative;
    width: 100%;
    height: 250px;
    margin: auto;
    overflow: hidden;
    /* 隐藏超出范围的图像 */
    border-radius: 10px;
    /* 轮播容器圆角 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    /* 阴影效果 */
}

.carousel-images {
    display: flex;
}

.carousel-images img {
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    margin: auto;
}

.carousel-images img.active {
    display: block;
    /* 仅显示活动图像 */
}

button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.3);
    border: 0px solid #ff4081;
    border-radius: 90px;
    cursor: pointer;
    padding: 10px 15px;
    font-size: 18px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

button:hover {
    background-color: #ff4081;
    color: white;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* ----------------------------------------------------顶部导航栏*/
.header-nav {
    left: 0;
    width: 100%;
    background-color: white;
    color: white;
    text-align: center;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    justify-content: space-around;
    display: flex;

}

.header-nav a {
    color: black;
    text-decoration: none;
    margin: 0 15px;
    font-size: 20px;
}

.header-nav a:hover {
    color: pink;
}

/* ----------------------------------------------------------底部导航栏 */
footer {
    background-color: #fff;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    bottom: 0;
    width: 100%;

}

.nav {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
}

.nav-item {
    text-align: center;
    color: #333;
    flex: 1;
    cursor: pointer;
}

.nav-item.active {
    color: #ff4081;
}


footer a {
    text-decoration: none;
    font-size: 13px;
    color: black;
    padding: 0;
}

footer img {
    width: 35px;
    height: 35px;
}